<?php
/**
 * 异常配置文件
 */

return [
    // 找不到model
    'Illuminate\Database\Eloquent\ModelNotFoundException' => [
        'message'   => "找不到相关信息",
        'code'      => 404,
        'log_level' => 'debug'
    ],

    'WSCyclopedia\Exceptions\ModelNotFoundException'  => [
        'message' => "找不到对应的信息",
        'code'    => 404,
    ],

    // 验证失败
    'Prettus\Validator\Exceptions\ValidatorException' => [
        'message' => '参数有误',
        'code'    => 400,
    ],

    'WSCyclopedia\Exceptions\InvalidArgumentException' => [
        'message' => '参数有误',
        'code'    => 400,
    ],

    'Symfony\Component\HttpKernel\Exception\BadRequestHttpException' => [
        'message' => '请求不合法',
        'code'    => 400,
    ],

    'Illuminate\Auth\Access\AuthorizationException' => [
        'message' => '无权访问',
        'code'    => '403',
    ],

    'Illuminate\Auth\AuthenticationException' => [
        'message' => '登陆失败',
        'code'    => '401',
    ],

    'App\Exceptions\HttpException' => [
        'message' => '网络异常',
        'code'    => '500',
    ],

];